<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="../common.inc" %>    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%java.util.Random r=new java.util.Random();  %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link href="./css/style1.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="./js/calendar.js"></script>
<script type="text/javascript" src="./js/form.js"></script>
<script type="text/javascript" language="javascript">
<!--
	function checkForm(){
		var linkmanName = document.getElementById("linkmanName");
		var linkmanDept = document.getElementById("linkmanDept");
		var customerName = document.getElementById("customerName");
		if(linkmanName.value == ""){
			alert("<fmt:message key='linkman.message.linkmanName'/><fmt:message key='common.message.empty'/>");
			return false;
		}
		if(linkmanDept.value == ""){
			alert("<fmt:message key='linkman.message.dept'/><fmt:message key='common.message.empty'/>");
			return false;
		}
		if(customerName.value == ""){
			alert("客户名不能为空");
			return false;
		}
		return true;
	}

	//start 定义一个javascript对象，用于存储要级联的那些数据
	function subProvince(id,parentId,name){
		this.id = id;				//省级id，下拉框的value
		this.parentId = parentId;	//省级对应的省份id
		this.name = name;			//省级名称，下拉框的text
	}
	var subProvinces = new Array();
	<c:forEach var="subPrivince" items="${ranges['218']}">
		subProvinces.push(new subCity('${subPrivince.id}','${subPrivince.parentId}','${subPrivince.CName}'));
	</c:forEach>
	function countryChangesEdit(obj){
		var parentId = obj.value;
		var subProvinceSelect = document.getElementById("provinceId");	//显示市级下拉列表
		
		subProvinceSelect.options.length = 1;
		for(var i = 0; i < subProvinces.length; i++){
			var subProvinceObj = subProvinces[i];
			if(subProvinceObj.parentId == parentId){
				var tempOption = document.createElement("option");
				tempOption.text = subProvinceObj.name;
				tempOption.value = subProvinceObj.id;
				subProvinceSelect.options[subProvinceSelect.options.length] = tempOption;
			}
		}
		if(obj.selectedIndex == 0){
			subProvinceSelect.selectedIndex = 0;
		}
	}
	
	function subCity(id,parentId,name){
		this.id = id;				//市级id，下拉框的value
		this.parentId = parentId;	//市级对应的省份id
		this.name = name;			//市级名称，下拉框的text
	}
	var subCitys = new Array();
	<c:forEach var="subCity" items="${ranges['219']}">
		subCitys.push(new subCity('${subCity.id}','${subCity.parentId}','${subCity.CName}'));
	</c:forEach>
	function provinceChangesEdit(obj){
		var parentId = obj.value;
		var subCitySelect = document.getElementById("cityId");	//显示市级下拉列表
		
		subCitySelect.options.length = 1;
		for(var i = 0; i < subCitys.length; i++){
			var subCityObj = subCitys[i];
			if(subCityObj.parentId == parentId){
				var tempOption = document.createElement("option");
				tempOption.text = subCityObj.name;
				tempOption.value = subCityObj.id;
				subCitySelect.options[subCitySelect.options.length] = tempOption;
			}
		}
		if(obj.selectedIndex == 0){
			subCitySelect.selectedIndex = 0;
		}
	}//end 国家、省、市级联

	/**function back(){
		var sign = "<c:out value='${sign}'/>";
		var customerId = "<c:out value='${customer.id}'/>";
		var uri = "./customerManage.do";
		if(sign == '1'){
			uri = "./customerManage.do";//返回客户资料页面
		}else if(sign == '2'){
			uri = "./contractCustomer.do";//返回签约客户页面
		}else if(sign == '3'){
			uri = "./customerCollect.do";//返回客户收集页面
		}
		window.location.href = uri;
		window.location.target = "main";
	}*/
	
	function back(){
		var customerId = "<c:out value='${customer.id}'/>";
		var sign = "<c:out value='${sign}'/>";
		window.location.href = "./customerManage.do?action=customerDetail&customerId="+customerId+"&sign="+sign;
		window.location.target = "main";
	}
	
	function showHidden(id){
		var obj = document.getElementById(id);
		if(obj.style.display == "none"){
			document.getElementById(id).style.display = "block";
			document.getElementById("img"+id).src = "./images/nolines_minus.gif";
		}else{
			document.getElementById(id).style.display = "none";
			document.getElementById("img"+id).src = "./images/nolines_plus.gif";
		}
	}
	
	function deptDialog(){
		var url = "./linkman.do?action=selectLinkmanDept&radom="+<%=r.nextInt(100)%>;
		var dlgParam = "dialogHeight:350px;dialogWidth:300px;dialogTop:300px;dialogLeft:400px;status:no;help:no;scrollbars:yes;";
		var rt = window.showModalDialog(url,"",dlgParam);
		if(rt != undefined){			
			//根据从子窗口得到的值，从中提取联系人部门名称和联系人部门id
			var deptId = "";
			var deptName = "";
			var tStr = rt.split(",");
			if(tStr[0] != 0 && tStr[1] != 0){
				deptId = tStr[0];
				deptName = tStr[1];
			}
			document.getElementById("linkmanDeptId").value = deptId;										
			document.getElementById("linkmanDept").value = deptName;
		}
	}
	
	function dutyDialog(){
		var url = "./linkman.do?action=selectLinkmanDuty&radom="+<%=r.nextInt(100)%>;
		var dlgParam = "dialogHeight:350px;dialogWidth:300px;dialogTop:300px;dialogLeft:400px;status:no;help:no;scrollbars:yes;";
		var rt = window.showModalDialog(url,"",dlgParam);
		if(rt != undefined){			
			//根据从子窗口得到的值，从中提取联系人职务名称和联系人职务id
			var dutyId = "";
			var dutyName = "";
			var tStr = rt.split(",");
			if(tStr[0] != 0 && tStr[1] != 0){
				dutyId = tStr[0];
				dutyName = tStr[1];
			}
			document.getElementById("linkmanDutyId").value = dutyId;										
			document.getElementById("linkmanDuty").value = dutyName;
		}
	}
	
	function save(){
		var sign = "<c:out value='${sign}'/>";
		if(checkForm()){
			document.addLinkmanForm.action = "./linkman.do?action=addLinkman&sign="+sign;
			document.addLinkmanForm.target = "main";
			document.addLinkmanForm.submit();
		}
	}
	
	function initPage(){
		if(document.getElementById('countryId') != null){
			if(document.getElementById('countryId').selectedIndex == 0){
				document.getElementById("provinceId").options.length = 1;
			}
		}
		if(document.getElementById('provinceId') != null){
			if(document.getElementById('provinceId').selectedIndex == 0){
				document.getElementById("cityId").options.length = 1;
			}
		}
		
		if("<c:out value='${result}'/>" == 1){
			alert("<fmt:message key='common.message.addSuccess'/>");
		}
	}
	function customerDialog(){
		var url = "./saleRecord.do?action=selectCustomer&radom="+<%=r.nextInt(100)%>;
		var dlgParam = "dialogHeight:350px;dialogWidth:400px;dialogTop:300px;dialogLeft:400px;status:no;help:no;scrollbars:yes;";
		var rt = window.showModalDialog(url,"",dlgParam);
		if(rt != undefined){			
			//根据从子窗口得到的值，从中提取客户id、客户名称、预测金额、预测签约、销售阶段id、需求描述
			var customerId = "";
			var customerName = "";
			var predictCost = "";
			var predictContract = "";
			var saleStageId = "";
			var requireDesc = "";
			var tStr = rt.split(",");
			if(tStr[0] != "" && tStr[1] != ""){
				customerId = tStr[0];
				customerName = tStr[1];
				predictCost = tStr[2];
				predictContract = tStr[3];
				saleStageId = tStr[4];
				requireDesc = tStr[5];
			}
			document.getElementById("customerId").value = customerId;	
			document.getElementById("customerName").value = customerName;	
			
		}
	}
-->
</script>
</head>
<body onload="initPage()">
<form name="addLinkmanForm" action="" method="post">
	<table class="table_frame">
		<tr>
			<td>
				<table class="table_title1">
					<tr>
						<td class="title_lab" colspan="2"><fmt:message key='customer.title.addlinkman'/></td>
					</tr>
					<tr>
						<td align="center" valign="bottom">
							<button class="btn_submit" onclick="save()" hidefocus="true">提交</button>&nbsp;&nbsp;
						</td>
					</tr>
					<tr><td height="2"></td></tr>
				</table>
			</td>
		</tr>
		<tr>
			<td>
				<table class="table_title2">
					<tr>
						<td class="title_info" colspan="2">
							<!-- 
							<img src="../../images/more.gif" title="隐藏/显示" height="15" width="15" 
								style="cursor: hand;" onclick="showHidden('tBaseInfo')">
							 -->
							<fmt:message key='customer.lable.baseInfo'/>
						</td>
					</tr>
					<tr id="tBaseInfo">
						<td>
							<table class="table_add">
								<tr>
									<td class="title"><!-- 客户名称 -->
										客户名称：
									</td>
									<td width="">
										<input id="customerName" name="customerName" class="input_long" type="text" readonly="readonly" value="${saleRecord.customerName}"/>&nbsp;
										<input class="btn_select" type="button" value="" onclick="customerDialog()" hidefocus="true"/>
										<input id="customerId" name="customerId" type="hidden" value="${customer.id}"/>
										<input id="currentUserId" name="currentUserId" type="hidden" value="${userId}"/>
									</td>
								</tr>
								<tr>
									<td class="title"><!-- 姓名 -->
										<c:choose>
											<c:when test="${language == 2}">${records['21'].currentRecordEn}：</c:when>
											<c:otherwise>${records['21'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width=""><input id="linkmanName" name="linkmanName" class="input_long" type="text" value="${linkman.linkmanName}"/>*</td>
								</tr>
								<tr>
									<td class="title" width=""><!-- 部门 -->
										<c:choose>
											<c:when test="${language == 2}">${records['22'].currentRecordEn}：</c:when>
											<c:otherwise>${records['22'].currentRecord}：</c:otherwise>
										</c:choose>
										<input id="deptDictionaryId" name="deptDictionaryId" type="hidden" value="${records['22'].id}"/>
									</td>
									<td width="">
										<input id="linkmanDept" name="linkmanDept" class="input_long" type="text" value="${linkman.linkmanDept}"/>&nbsp;
										<input class="btn_select" type="button" value="" onclick="deptDialog()"/>*
										<input id="linkmanDeptId" name="linkmanDeptId" type="hidden" value="${linkman.linkmanDeptId}"/>
									</td>
								</tr>
								<tr>
									<td class="title" width=""><!-- 职务 -->
										<c:choose>
											<c:when test="${language == 2}">${records['23'].currentRecordEn}：</c:when>
											<c:otherwise>${records['23'].currentRecord}：</c:otherwise>
										</c:choose>
										<input id="dutyDictionaryId" name="dutyDictionaryId" type="hidden" value="${records['23'].id}"/>
									</td>
									<td width="">
										<input id="linkmanDuty" name="linkmanDuty" class="input_long" type="text" value="${linkman.linkmanDuty}"/>&nbsp;
										<input class="btn_select" type="button" value="" onclick="dutyDialog()"/>
										<input id="linkmanDutyId" name="linkmanDutyId" type="hidden" value="${linkman.linkmanDutyId}"/>
									</td>
								</tr>
								<tr>
									<td class="title" width=""><!-- 角色 -->
										<c:choose>
											<c:when test="${language == 2}">${records['24'].currentRecordEn}：</c:when>
											<c:otherwise>${records['24'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width="">
										<select id="itemRoleId" name="itemRoleId">
											<option value="0" <c:if test='${linkman.itemRoleId == 0}'>selected</c:if> >----------<fmt:message key='common.select.option'/>----------</option>
											<c:forEach var="range" items="${ranges['24']}">
											<option value="${range.id}" <c:if test='${linkman.itemRoleId == range.id}'>selected</c:if> >${range.rangeValue}</option>
											</c:forEach>
										</select>
									</td>
								</tr>
								<tr>
									<td class="title" width=""><!-- 手机 -->
										<c:choose>
											<c:when test="${language == 2}">${records['25'].currentRecordEn}：</c:when>
											<c:otherwise>${records['25'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width=""><input id="mobile" name="mobile" class="input_long" type="text" value="${linkman.mobile}"/></td>
								</tr>
								<tr>
									<td class="title" width=""><!-- 办公电话 -->
										<c:choose>
											<c:when test="${language == 2}">${records['26'].currentRecordEn}：</c:when>
											<c:otherwise>${records['26'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width=""><input id="officePhone" name="officePhone" class="input_long" type="text" value="${linkman.officePhone}"/></td>
								</tr>
								<tr>
									<td class="title" width=""><!-- 邮箱 -->
										<c:choose>
											<c:when test="${language == 2}">${records['27'].currentRecordEn}：</c:when>
											<c:otherwise>${records['27'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width=""><input id="email" name="email" class="input_long" type="text" value="${linkman.email}"/></td>
								</tr>
								<tr>
									<td class="title"><!-- 备注 -->
										<c:choose>
											<c:when test="${language == 2}">${records['28'].currentRecordEn}：</c:when>
											<c:otherwise>${records['28'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width=""><textarea id="linkDesc" name="linkDesc" class="textarea_desc" wrap="hard">${linkman.linkDesc}</textarea></td>
								</tr>
							</table>
						</td>
					</tr>
				</table>		
				
				<table class="table_title2">
					<tr>
						<td class="title_info" colspan="2" onclick="showHidden('2')">
							<img id="img2" src="./images/nolines_minus.gif">
							<fmt:message key='customer.lable.moreInfo'/>
						</td>
					</tr>
					<tr id="2">
						<td>
							<table class="table_add">
								<c:if test="${records['29'].status == 1}">
								<tr>
									<td class="title"><!-- 性别 -->
										<c:choose>
											<c:when test="${language == 2}">${records['29'].currentRecordEn}：</c:when>
											<c:otherwise>${records['29'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width="">
										<select id="sexId" name="sexId">
											<option value="0" <c:if test='${linkman.sexId == 0}'>selected</c:if> >----------<fmt:message key='common.select.option'/>----------</option>
											<c:forEach var="range" items="${ranges['29']}">
											<option value="${range.id}" <c:if test='${linkman.sexId == range.id}'>selected</c:if> >${range.rangeValue}</option>
											</c:forEach>
										</select>
									</td>
								</tr>
								</c:if>
								<c:if test="${records['210'].status == 1}">
								<tr>
									<td class="title" width=""><!-- 住宅电话 -->
										<c:choose>
											<c:when test="${language == 2}">${records['210'].currentRecordEn}：</c:when>
											<c:otherwise>${records['210'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width=""><input id="homePhone" name="homePhone" class="input_long" type="text" value="${linkman.homePhone}"/></td>
								</tr>
								</c:if>
								<c:if test="${records['211'].status == 1}">
								<tr>
									<td class="title" width=""><!-- 其他联系方式 -->
										<c:choose>
											<c:when test="${language == 2}">${records['211'].currentRecordEn}：</c:when>
											<c:otherwise>${records['211'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width=""><input id="otherContactWay" name="otherContactWay" class="input_long" type="text" value="${linkman.otherContactWay}"/></td>
								</tr>
								</c:if>
								<c:if test="${records['212'].status == 1}">
								<tr>
									<td class="title" width=""><!-- MSN -->
										<c:choose>
											<c:when test="${language == 2}">${records['212'].currentRecordEn}：</c:when>
											<c:otherwise>${records['212'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width=""><input id="MSN" name="MSN" class="input_long" type="text" value="${linkman.MSN}"/></td>
								</tr>
								</c:if>
								<c:if test="${records['213'].status == 1}">
								<tr>
									<td class="title" width=""><!-- QQ -->
										<c:choose>
											<c:when test="${language == 2}">${records['213'].currentRecordEn}：</c:when>
											<c:otherwise>${records['213'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width=""><input id="QQ" name="QQ" class="input_long" type="text" value="${linkman.QQ}"/></td>
								</tr>
								</c:if>
								<c:if test="${records['214'].status == 1}">
								<tr>
									<td class="title" width=""><!-- 个人主页 -->
										<c:choose>
											<c:when test="${language == 2}">${records['214'].currentRecordEn}：</c:when>
											<c:otherwise>${records['214'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width=""><input id="homePage" name="homePage" class="input_long" type="text" value="${linkman.homePage}"/></td>
								</tr>
								</c:if>
								<c:if test="${records['215'].status == 1}">
								<tr>
									<td class="title" width=""><!-- 年收入 -->
										<c:choose>
											<c:when test="${language == 2}">${records['215'].currentRecordEn}：</c:when>
											<c:otherwise>${records['215'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width="">
										<select id="yearIncomeId" name="yearIncomeId">
											<option value="0" <c:if test='${linkman.yearIncomeId == 0}'>selected</c:if> >----------<fmt:message key='common.select.option'/>----------</option>
											<c:forEach var="range" items="${ranges['215']}">
											<option value="${range.id}" <c:if test='${linkman.yearIncomeId == range.id}'>selected</c:if> >${range.rangeValue}</option>
											</c:forEach>
										</select>
									</td>
								</tr>
								</c:if>
								<c:if test="${records['216'].status == 1}">
								<tr>
									<td class="title" width=""><!-- 职业 -->
										<c:choose>
											<c:when test="${language == 2}">${records['216'].currentRecordEn}：</c:when>
											<c:otherwise>${records['216'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width="">
										<select id="jobId" name="jobId">
											<option value="0" <c:if test='${linkman.jobId == 0}'>selected</c:if> >----------<fmt:message key='common.select.option'/>----------</option>
											<c:forEach var="range" items="${ranges['216']}">
											<option value="${range.id}" <c:if test='${linkman.jobId == range.id}'>selected</c:if> >${range.rangeValue}</option>
											</c:forEach>
										</select>
									</td>
								</tr>
								</c:if>
								<c:if test="${records['217'].status == 1}">
								<tr>
									<td class="title" width=""><!-- 国家 -->
										<c:choose>
											<c:when test="${language == 2}">${records['217'].currentRecordEn}：</c:when>
											<c:otherwise>${records['217'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width="">
										<select id="countryId" name="countryId" onchange="countryChangesEdit(this)">
											<option value="0" <c:if test='${customer.countryId == 0}'>selected</c:if> >----------<fmt:message key='common.select.option'/>----------</option>
											<c:forEach var="range" items="${ranges['217']}">
											<option value="${range.id}" <c:if test='${customer.countryId == range.id}'>selected</c:if> >
												${range.CName}
											</option>
											</c:forEach>
										</select>
									</td>
								</tr>
								</c:if>
								<c:if test="${records['218'].status == 1}">
								<tr>
									<td class="title" width=""><!-- 省级 -->
										<c:choose>
											<c:when test="${language == 2}">${records['218'].currentRecordEn}：</c:when>
											<c:otherwise>${records['218'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width="">
										<select id="provinceId" name="provinceId" onclick="provinceChangesEdit(this)">
											<option value="0" <c:if test='${customer.provinceId == 0}'>selected</c:if> >----------<fmt:message key='common.select.option'/>----------</option>
											<c:forEach var="range" items="${ranges['218']}">
											<option value="${range.id}" <c:if test='${customer.provinceId == range.id}'>selected</c:if> >
												${range.CName}
											</option>
											</c:forEach>
										</select>
									</td>
								</tr>
								</c:if>
								<c:if test="${records['219'].status == 1}">
								<tr>
									<td class="title" width=""><!-- 市级 -->
										<c:choose>
											<c:when test="${language == 2}">${records['219'].currentRecordEn}：</c:when>
											<c:otherwise>${records['219'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width="">
										<select id="cityId" name="cityId">
											<option value="0" <c:if test='${customer.cityId == 0}'>selected</c:if> >----------<fmt:message key='common.select.option'/>----------</option>
											<c:forEach var="range" items="${ranges['219']}">
											<option value="${range.id}" <c:if test='${customer.cityId == range.id}'>selected</c:if> >
												${range.CName}
											</option>
											</c:forEach>
										</select>
									</td>
								</tr>
								</c:if>
								<c:if test="${records['220'].status == 1}">
								<tr>
									<td class="title" width=""><!-- 生日 -->
										<c:choose>
											<c:when test="${language == 2}">${records['220'].currentRecordEn}：</c:when>
											<c:otherwise>${records['220'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width="">
										<input id="birthday" name="birthday" class="input_long" type="text" 
											value="<fmt:formatDate value='${linkman.birthday}' pattern='yyyy-MM-dd'/>" 
											onclick="calendar(this,'yyyy-MM-dd');" readonly="readonly"/>
									</td>
								</tr>
								</c:if>
								<c:if test="${records['221'].status == 1}">
								<tr>
									<td class="title" width=""><!-- 喜好 -->
										<c:choose>
											<c:when test="${language == 2}">${records['221'].currentRecordEn}：</c:when>
											<c:otherwise>${records['221'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width="">
										<select id="interestId" name="interestId">
											<option value="0" <c:if test='${linkman.interestId == 0}'>selected</c:if> >----------<fmt:message key='common.select.option'/>----------</option>
											<c:forEach var="range" items="${ranges['221']}">
											<option value="${range.id}" <c:if test='${linkman.interestId == range.id}'>selected</c:if> >${range.rangeValue}</option>
											</c:forEach>
										</select>
									</td>
								</tr>
								</c:if>
								<c:if test="${records['222'].status == 1}">
								<tr>
									<td class="title" width=""><!-- 是否结婚 -->
										<c:choose>
											<c:when test="${language == 2}">${records['222'].currentRecordEn}：</c:when>
											<c:otherwise>${records['222'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width="">
										<select id="isMarryId" name="isMarryId">
											<option value="0" <c:if test='${linkman.isMarryId == 0}'>selected</c:if> >----------<fmt:message key='common.select.option'/>----------</option>
											<c:forEach var="range" items="${ranges['222']}">
											<option value="${range.id}" <c:if test='${linkman.isMarryId == range.id}'>selected</c:if> >${range.rangeValue}</option>
											</c:forEach>
										</select>
									</td>
								</tr>
								</c:if>
								<c:if test="${records['223'].status == 1}">
								<tr>
									<td class="title" width=""><!-- 自定义数字项1 -->
										<c:choose>
											<c:when test="${language == 2}">${records['223'].currentRecordEn}：</c:when>
											<c:otherwise>${records['223'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width="">
										<input id="customNumItem1" name="customNumItem1" class="input_long" type="text" 
											value="${linkman.customNumItem1}" onkeyup="onlyNumber(this)"/>
									</td>
								</tr>
								</c:if>
								<c:if test="${records['224'].status == 1}">
								<tr>
									<td class="title" width=""><!-- 自定义数字项2 -->
										<c:choose>
											<c:when test="${language == 2}">${records['224'].currentRecordEn}：</c:when>
											<c:otherwise>${records['224'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width="">
										<input id="customNumItem2" name="customNumItem2" class="input_long" type="text" 
											value="${linkman.customNumItem2}" onkeyup="onlyNumber(this)"/>
									</td>
								</tr>
								</c:if>
								<c:if test="${records['225'].status == 1}">
								<tr>
									<td class="title" width=""><!-- 自定义数字项3 -->
										<c:choose>
											<c:when test="${language == 2}">${records['225'].currentRecordEn}：</c:when>
											<c:otherwise>${records['225'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width="">
										<select id="customNumItemId3" name="customNumItemId3">
											<option value="0" <c:if test='${linkman.customNumItemId3 == 0}'>selected</c:if> >----------<fmt:message key='common.select.option'/>----------</option>
											<c:forEach var="range" items="${ranges['225']}">
											<option value="${range.id}" <c:if test='${linkman.customNumItemId3 == range.id}'>selected</c:if> >${range.rangeValue}</option>
											</c:forEach>
										</select>
									</td>
								</tr>
								</c:if>
								<c:if test="${records['226'].status == 1}">
								<tr>
									<td class="title" width=""><!-- 自定义项1 -->
										<c:choose>
											<c:when test="${language == 2}">${records['226'].currentRecordEn}：</c:when>
											<c:otherwise>${records['226'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width=""><input id="customItem1" name="customItem1" class="input_long" type="text" value="${linkman.customItem1}"/></td>
								</tr>
								</c:if>
								<c:if test="${records['227'].status == 1}">
								<tr>
									<td class="title" width=""><!-- 自定义项2 -->
										<c:choose>
											<c:when test="${language == 2}">${records['227'].currentRecordEn}：</c:when>
											<c:otherwise>${records['227'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width=""><input id="customItem2" name="customItem2" class="input_long" type="text" value="${linkman.customItem2}"/></td>
								</tr>
								</c:if>
								<c:if test="${records['228'].status == 1}">
								<tr>
									<td class="title" width=""><!-- 自定义项3 -->
										<c:choose>
											<c:when test="${language == 2}">${records['228'].currentRecordEn}：</c:when>
											<c:otherwise>${records['228'].currentRecord}：</c:otherwise>
										</c:choose>
									</td>
									<td width="">
										<select id="customItemId3" name="customItemId3">
											<option value="0" <c:if test='${linkman.customItemId3 == 0}'>selected</c:if> >----------<fmt:message key='common.select.option'/>----------</option>
											<c:forEach var="range" items="${ranges['228']}">
											<option value="${range.id}" <c:if test='${linkman.customItemId3 == range.id}'>selected</c:if> >${range.rangeValue}</option>
											</c:forEach>
										</select>
									</td>
								</tr>
								</c:if>
							</table>
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
</form>		
</body>
</html>